package com.lehecai.core.search.entity.member;


import com.lehecai.core.search.converter.SearchEntityPropertyConverterDelegate;
import com.lehecai.core.search.entity.SearchEntityPropertyDefine;

/**
 * @author He Wang
 *
 */
public class RecordRechargeSearchDefine {

    public final static String ID = "recharge_id";
    public final static String WALLET_TYPE = "wallet_type";
    public final static String UID = "uid";
    public final static String CREATE_AT = "create_at";
    public final static String STATUS = "status";
    public final static String AMOUNT = "amount";
    public final static String TYPE = "type";
    public final static String BANK_TYPE = "bank_type";

    
    public final static String CREATE_AT_START = "create_time_start";
    public final static String CREATE_AT_END = "create_time_end";
    public final static String PRIZE_TIME_START = "prize_time_start";
    public final static String PRIZE_TIME_END = "prize_time_end";

	/**
	 * 属性定义
	 */
	private static SearchEntityPropertyDefine[] definition = new SearchEntityPropertyDefine[] {
        new SearchEntityPropertyDefine(ID, "id", SearchEntityPropertyConverterDelegate.StringToLong),
        new SearchEntityPropertyDefine(UID, SearchEntityPropertyConverterDelegate.LongToLong),
        new SearchEntityPropertyDefine(CREATE_AT, "createdTime", SearchEntityPropertyConverterDelegate.DateToLong),
        new SearchEntityPropertyDefine(STATUS, "rechargeStatus", SearchEntityPropertyConverterDelegate.RechargeStatusToInteger),
        new SearchEntityPropertyDefine(AMOUNT, SearchEntityPropertyConverterDelegate.DoubleToLong),
        new SearchEntityPropertyDefine(TYPE, "rechargeType", SearchEntityPropertyConverterDelegate.RechargeTypeToInteger),
        new SearchEntityPropertyDefine(BANK_TYPE, "bankType", SearchEntityPropertyConverterDelegate.BankTypeToInteger),
        new SearchEntityPropertyDefine(WALLET_TYPE, "walletType", SearchEntityPropertyConverterDelegate.WalletTypeToInteger)
	};
	
	public static SearchEntityPropertyDefine[] get() {
		return definition;
	}
}
